package com.clarence.dada.core.redis.operator.type;


import com.clarence.dada.core.redis.constants.RedisConstants;
import com.clarence.dada.core.redis.operator.AbstractRedisCacheOperator;
import com.clarence.dada.modular.system.user.entity.resp.SysUserResp;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * 用户的缓存
 *
 * @author fengshuonan
 * @since 2021/2/28 10:23
 */
public class SysUserRedisCache extends AbstractRedisCacheOperator<SysUserResp> {

    public SysUserRedisCache(RedisTemplate<String, SysUserResp> redisTemplate) {
        super(redisTemplate);
    }

    @Override
    public String getCommonKeyPrefix() {
        return RedisConstants.USER_CACHE_PREFIX;
    }

}
